﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="WebPortal.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Ultimus Login</title>
    <script src="Content/js/jquery.min.js" type="text/javascript"></script>
    <script src="Content/js/jquery-custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        self.moveTo(0, 0)
        self.resizeTo(screen.availWidth, screen.availHeight)

        $(document).ready(function () {
            $("#txtUser").focus();
        });

        function checkError() {
            msg("用户名或密码不正确！");
        }

        function validate() {
            if ($("#txtUser").val() == "") {
                msg("用户名不能为空！");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" class="form" runat="server">
    <div class="container" style="margin-top: 40px">
        <div class="row">
            <fieldset>
                <legend>
                    <img src="Content/img/logo.gif" alt="Logo" style="height: 51px; width: 212px" /></legend>
                <div class="span8">
                    <img src="Content/img/login_bg.jpg" alt="Logo background" />
                </div>
                <div class="span4">
                    <h4>
                        用户登录</h4>
                    <label for="username">
                        用户名</label>
                    <div class="row">
                        <div class="input-prepend span2">
                            <asp:TextBox ID="txtUser" runat="server" Width="60"></asp:TextBox>
                            <span class="add-on"><i>@</i></span>
                            <asp:DropDownList ID="ddlDomains" Width="160" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <label for="password">
                        密码</label>
                    <asp:TextBox ID="txtPassword" runat="server" Width="245" TextMode="Password"></asp:TextBox>
                    <div class="row">
                        <label for="cbxRememberMe" class="span2">
                            <asp:CheckBox ID="cbxRememberMe" runat="server" />&nbsp;记住我
                        </label>
                        <div style="padding-left: 225px;">
                            <asp:Button ID="btnSubmit" runat="server" Text="登录" OnClientClick="return validate();" class="btn btn-primary" OnClick="btnSubmit_Click" /></div>
                    </div>
                </div>
            </fieldset>
        </div>
        <hr />
        <div class="well">
            <p>
                &copy; Ultimus Client 2012</p>
        </div>
    </div>
    <div class="hidden">
        <asp:TextBox ID="txtReturnUrl" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>
